package com.example.demo.mapper;

import com.example.demo.entity.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * Description:
 * User: 故我
 * Date: 2023-11-07
 * Time: 19:59
 */
@Mapper
public interface UserMapper {

    int register(UserInfo userInfo);

    //通过用户名获取到该对象
    UserInfo getUserByName(@Param("username") String username);

    UserInfo getUserById(@Param("id") Integer id);
}
